#include<iostream>
#include<string>
#include<vector>
using namespace std;



int main()
{
    string str;
    getline(std::cin,str);
    vector<string>s;
    int left=0;
    while(left<str.size())
    {
        int pos=str.find(' ',left);
        if(pos!=std::string::npos)
        {
            if(pos-left>=1)
            {
                s.push_back(str.substr(left,pos-left));
            }
            left=pos+1;
        }
        else
        {
            s.push_back(str.substr(left));
            break;
        }
    }
    string ret;
    for(auto&ch:s)
    {
        ret+=toupper(ch[0]);
    }
    cout<<ret;
    return 0;
}